<template>
  <div class="page">
    <h1>Category</h1>
    <button @click="fn1">点我,要去通信 Home</button>
  </div>
</template>

<script>
export default {
  methods: {
    fn1() {
      // 触发 home_change 事件
      this.$bus.$emit("home_change", "张三");
    },
  },
};
</script>
